using System;
using Castle.MonoRail.Framework;
using Pic.Model;

namespace Pic.Web.Components
{
    public abstract class PicAbstractViewComponent:ViewComponent
    {
        public override void Initialize()
        {
            Pic_Member member = (Pic_Member)MonoRailHttpHandler.CurrentContext.Session["Member"];
            PropertyBag.Add("isAuthenticated", member != null );
        }
    }
}
